﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
    margin-top: 1px">
    <tr>
        <td valign="middle" height="30">
            <font id="Font1" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left;
                color: black; text-indent: 1em;" runat="server">设 置 权 限</font>
        </td>
    </tr>
</table>
<table class="window_tab_list" cellpadding="0" cellspacing="0" border="0" width="100%"
    align="center">
    <tr>
        <td height="30" width="100px" style="text-align: left">
            <img src="<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/arrowright.gif"
                align="absmiddle" />
            &nbsp;<a href="UserAuthorization.aspx">授权列表</a>
        </td>
        <td style="text-align: left">
            <asp:Button ID="saveset" runat="server" Text="保存设置" />
        </td>
    </tr>
</table>
<table class="window_tab_list" cellpadding="0" cellspacing="0" border="0" width="100%"
    align="center" style="margin-top: 3px; border-collapse: collapse; line-height:25px;">
    <tr>
        <th colspan="2">
            <asp:Label ID="showedittext" runat="server" Text="设 置 权 限"></asp:Label>
        </th>
    </tr>
    <tr>
        <CBW:MPRepeater ID="MPRepeaterList" runat="server">
            <EmptyDataTemplate>
                <td style="text-align: center;" colspan="2">
                    暂无数据！
                </td>
            </EmptyDataTemplate>
            <ItemTemplate>
                <td style="text-align: left;" valign="top">
                    <div style="width: 100%; height: 20px; background-color: #ECF2FB">
                        <asp:CheckBox ID="bcheckselect" runat="server" Text='<%#Eval("MENU_TITLE") %>' onclick='if($(this).attr("checked")==false){$(this).parent().parent().find("#selectadddiv").find("input").attr("checked",false)}else{$(this).parent().parent().find("#selectadddiv").find("input").attr("checked",true)}' />
                    </div>
                    <div id="selectadddiv" style="width: 100%;">
                        <CBW:MPRepeater ID="sMPRepeaterList" runat="server">
                            <ItemTemplate>
                                <asp:Label ID="sidtib" runat="server" Text='<%#Eval("id") %>' Visible="false"></asp:Label>
                                <asp:CheckBox ID="checkselect" runat="server" Text='<%#Eval("MENU_TITLE") %>' Checked='<%#((Eval("isexist").ToString()=="1")||(Eval("isexist2").ToString()=="1")) %>'
                                    ForeColor='<%#Eval("isexist2").ToString()=="1"?System.Drawing.Color.Black:(Eval("isexist").ToString()=="1"?System.Drawing.Color.Red:System.Drawing.Color.Black) %>' /><br />
                            </ItemTemplate>
                        </CBW:MPRepeater>
                    </div>
                </td>
                <asp:Label ID="idtib" runat="server" Text='<%#Eval("id") %>' Visible="false"></asp:Label>
                <asp:Label ID="showtr" runat="server"></asp:Label>
            </ItemTemplate>
        </CBW:MPRepeater>
    </tr>
</table>
